package com.fenqile.arch.dubbo.controller;

import com.fenqile.arch.dubbo.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <h1> TestController </h1>
 *
 * @author yuwen
 * @since 2022-07-12
 */
@RestController
@RequestMapping
public class TestController {


    private TestService testService;

    public TestController(TestService testService) {
        this.testService = testService;
    }

    @GetMapping("/test2")
    public void test() {
        testService.test();
    }
}
